/*
 ============================================================================
 Name        : PI.c
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Hello World in C, Ansi-style
 ============================================================================
 */

#include <stdio.h>
#include <stdlib.h>

int decit(int a) {

	int resto = 0;

	while (a > 0) {

		resto = a % 10;
		printf("%d ", resto);
		a = (a / 10);
	}
	printf("\n");
	return 0;

}

int decrec(int a) {

	int resto = 0;

	printf("%d ", a % 10);
	a = a / 10;
	if (a > 0) {
		return decrec(a);
	}

	printf("\n");
	return 0;
}

void capitaliza(char f[]) {
//	char n[1000];
	int i = 0;
	while (f[i] != '\0') {

		if (f[i] >= 'a' && f[i] <= 'z') {
			f[i] = (int) f[i] - ('a' - 'A');
		} else {
			//Nothing to do
		}
		i++;
	}

}

int mascara(char ch, char f[]) {

	int i = 0;
	int conta = 0;

	while (f[i] != '\0') {
		if (f[i] == ch) {
			f[i] = '*';
			conta++;
		}
		i++;

	}
	return conta;
}




int main(int argc, char **argv, int NumAtletas, int numNotas) {

//	decit(atoi(argv[1]));
//	decrec(atoi(argv[1]));
//	capitaliza(argv[1]);
//	mascara(argv[1][0],argv[2]);
	// puts(argv[2]);
}
